<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/quill.snow.css" rel="stylesheet">
    <link href="/page.css" rel="stylesheet">
    <title>首页</title>
</head>
<body>
<header>
    <nav>
        <ul id="menu">
            <li><a th:href="${schoolUrl}" th:classappend="${cat.name() == 'SCHOOL'} ? 'active' : ''">学校信息</a></li>
            <li><a th:href="${teacherUrl}" th:classappend="${cat.name() == 'TEACHER'} ? 'active' : ''">老师信息</a></li>
            <li><a th:href="${courseUrl}" th:classappend="${cat.name() == 'COURSE'} ? 'active' : ''">课程信息</a></li>
            <li>
                <a th:href="'/register/'+${code}">注册</a>
                <a href="/login">登录</a>
            </li>
        </ul>

        <ul th:if="${not #lists.isEmpty(subMenu)}" th:id="sub-menu">
            <li th:each="sm : ${subMenu}">
                <a th:href="${sm.url}" th:text="${sm.name}" th:classappend="${sm.className}"></a>
            </li>
        </ul>
    </nav>
</header>
<main>
    <article style="margin: 20px auto; max-width: 1024px;" class="ql-editor" th:utext="${content}"></article>
</main>
<footer>
    <p>版权所有 &copy; refusea.com 2024</p>
</footer>
</body>
</html>
